From 8ef0c5ff6c44e9f114c6dbe9c76c413aaf6b166c Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Thu, 19 Aug 2010 18:15:44 +0100 Subject: [PATCH] libxl: Disable opengl if info->opengl == 0 (correct sense of test) Disable opengl if info->opengl == 0 Signed-off-by: Stefano Stabellini Signed-off-by: Ian Jackson --- tools/libxl/libxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 6eb17e82d9..099d82e7e9 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1129,7 +1129,7 @@ static char ** libxl_build_device_model_args_old(libxl_gc *gc, } if (info->sdl) { flexarray_set(dm_args, num++, "-sdl"); - if (info->opengl) { + if (!info->opengl) { flexarray_set(dm_args, num++, "-disable-opengl"); } } -- 2.30.2